package com.lnsoft.util;

public class LoggerUtil {
	
	public static String getMessage(Exception e) {
		StringBuffer sbf = new StringBuffer();
		sbf.append(e).append("\r\n");
		StackTraceElement[] stackTrace = new StackTraceElement[e.getStackTrace().length];
		stackTrace = e.getStackTrace();
		for(int i=0; i<stackTrace.length; i++){
			sbf.append(stackTrace[i]).append("\r\n");
		}
		return sbf.toString();
	}
	
}
